﻿<%@ Page Title="" Language="C#" MasterPageFile="~/controlasistencia/Plantilla.Master" AutoEventWireup="true" CodeBehind="reporteBitacora.aspx.cs" Inherits="Presentacion.controlasistencia.reporteBitacora" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contenido" runat="server">
    <form id="frmBitacora" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="row">
            <div class="col-lg-12">
                <div class="page-title">
                    <h2>Reportes de horas
                        <small>
                            <asp:Label ID="lblCarrera" runat="server" Text=""></asp:Label></small>
                    </h2>
                    <ol class="breadcrumb">
                        <li><i class="fa"></i><a href="index.aspx" class="tamano-breadcrumbs">Inicio</a>
                        </li>
                        <li class="active tamano-breadcrumbs">Reportes de Horas</li>
                    </ol>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>

        <div class="row">

            <div class="col-lg-12">

                <div class="portlet portlet-green">
                    <div class="portlet-heading">
                        <div class="portlet-title">
                            <h4>Reporte </h4>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="portlet-body">
                        <div class="tooltip-b col-lg-12">
                            <div class="col-lg-3">
                                <asp:DropDownList ID="ddlPeriodo" runat="server" ClientIDMode="Static" CssClass="form-control"></asp:DropDownList>
                            </div>
                            <div class="col-lg-3">
                                <asp:DropDownList ID="ddlSemestre" runat="server" ClientIDMode="Static" CssClass="form-control">
                                    <asp:ListItem Selected="True" Value="">SELECCIONE UN SEMESTRE</asp:ListItem>
                                    <asp:ListItem Value="1">PRIMER</asp:ListItem>
                                    <asp:ListItem Value="2">SEGUNDO</asp:ListItem>
                                    <asp:ListItem Value="3">TERCERO</asp:ListItem>
                                    <asp:ListItem Value="4">CUARTO</asp:ListItem>
                                    <asp:ListItem Value="5">QUINTO</asp:ListItem>
                                    <asp:ListItem Value="6">SEXTO</asp:ListItem>
                                    <asp:ListItem Value="7">S&#201;PTIMO</asp:ListItem>
                                    <asp:ListItem Value="8">OCTAVO</asp:ListItem>
                                    <asp:ListItem Value="9">NOVENO</asp:ListItem>
                                    <asp:ListItem Value="10">DECIMO</asp:ListItem>
                                </asp:DropDownList>

                            </div>
                            <div class="col-lg-2">
                                <asp:DropDownList ID="ddlParalelo" runat="server" ClientIDMode="Static" CssClass="form-control">
                                    <asp:ListItem Selected="True" Value="">SELECCIONE UN PARALELO</asp:ListItem>
                                    <asp:ListItem>A</asp:ListItem>
                                    <asp:ListItem>B</asp:ListItem>
                                    <asp:ListItem>C</asp:ListItem>
                                    <asp:ListItem>D</asp:ListItem>
                                    <asp:ListItem>E</asp:ListItem>
                                </asp:DropDownList>

                            </div>
                            <div class="col-lg-2">
                                <asp:Button ID="btnReporteSemestre" CssClass="btn btn-blue" runat="server" Text="Reporte Semestral" title="Seleccione el periodo, semestre y paralelo correspondiente para generar el reporte." data-toggle="tooltip" OnClick="btnReporteSemestre_Click" />
                            </div>
                            <div class="col-lg-2">
                                <asp:Button ID="btnReporteGeneral" CssClass="btn btn-default" runat="server" Text="Reporte General" title="Seleccione el periodo deseado para generar reporte." data-toggle="tooltip" OnClick="btnReporteGeneral_Click" />
                            </div>
                        </div>
                        <div class="table-responsive col-sm-12 col-lg-12">
                            
                            <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width="100%" AsyncRendering="False" CssClass="table-responsive" Visible="False" SizeToReportContent="true">
                                <LocalReport ReportEmbeddedResource="Presentacion.controlasistencia.reports.reporteBitacora.rdlc">
                                    <DataSources>
                                        <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="dtsBitacora" />
                                    </DataSources>
                                </LocalReport>
                            </rsweb:ReportViewer>


                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="obtenerBitacora" TypeName="Negocio.catalogos.catalogoReporte, Negocio, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="" Name="_idCarrera" Type="Int32"></asp:Parameter>
                                    <asp:Parameter DefaultValue="" Name="_idPeriodo" Type="Int32"></asp:Parameter>
                                </SelectParameters>
                            </asp:ObjectDataSource>


                        </div>

                        <div class="clearfix"></div>
                    </div>
                </div>
                <!-- /.portlet -->

            </div>
        </div>

    </form>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">
    <script>
        $(function () {

            // tooltip demo
            $('.tooltip-b').tooltip({
                selector: "[data-toggle=tooltip]",
                container: "body"
            });

            $("[data-toggle=popover]").popover({
                animation: true,
                html: true,
                trigger: 'click'
            });

        });
    </script>
</asp:Content>
